IdeaBlade DevForce 2010 Help Reference
DataEntityProperty<TInstance,TValue> Constructor
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > DataEntityProperty<TInstance,TValue> Class : DataEntityProperty<TInstance,TValue> Constructor



propertyName
The entity property name
isNullable
Whether this property can accept null values
isPartOfKey
Whether this property is a primary key property
concurrencyStrategy
Whether this property is a concurrency column and the strategy to use
isAutoIncrementing
Whether this property is autoincrementing
relatedNavigationPropertyName
Name of any related navigation property.
isNativeProperty
Whether this property is a native property (default=true)
Creates an instance of this class.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal propertyName As String, _
   ByVal isNullable As Boolean, _
   ByVal isPartOfKey As Boolean, _
   ByVal concurrencyStrategy As ConcurrencyStrategy, _
   ByVal isAutoIncrementing As Boolean, _
   ByVal relatedNavigationPropertyName As String, _
   Optional ByVal isNativeProperty As Boolean _
)
Visual Basic (Usage)Copy Code
Dim propertyName As String
Dim isNullable As Boolean
Dim isPartOfKey As Boolean
Dim concurrencyStrategy As ConcurrencyStrategy
Dim isAutoIncrementing As Boolean
Dim relatedNavigationPropertyName As String
Dim isNativeProperty As Boolean
 
Dim instance As New DataEntityProperty(Of TInstance,TValue)(propertyName, isNullable, isPartOfKey, concurrencyStrategy, isAutoIncrementing, relatedNavigationPropertyName, isNativeProperty)
C# 
public DataEntityProperty<TInstance,TValue>( 
   string propertyName,
   bool isNullable,
   bool isPartOfKey,
   ConcurrencyStrategy concurrencyStrategy,
   bool isAutoIncrementing,
   string relatedNavigationPropertyName,
   bool isNativeProperty
)
C++/CLI 
public:
DataEntityProperty<TInstance,TValue>( 
   String^ propertyName,
   bool isNullable,
   bool isPartOfKey,
   ConcurrencyStrategy concurrencyStrategy,
   bool isAutoIncrementing,
   String^ relatedNavigationPropertyName,
   bool isNativeProperty
)

Parameters

propertyName
The entity property name
isNullable
Whether this property can accept null values
isPartOfKey
Whether this property is a primary key property
concurrencyStrategy
Whether this property is a concurrency column and the strategy to use
isAutoIncrementing
Whether this property is autoincrementing
relatedNavigationPropertyName
Name of any related navigation property.
isNativeProperty
Whether this property is a native property (default=true)

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.